package com.chzu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chzu.pojo.SignSubmission;
import org.apache.ibatis.annotations.Param;

import javax.websocket.server.PathParam;

/**
 * @Author lz
 * @Version 1.0
 * @Company 滁州大健康与养老产业研究院
 * @ClassName SignSubmissionMapper
 * @Description TODO
 * @Date 2022/02/13 18:09
 */
public interface SignSubmissionMapper extends BaseMapper<SignSubmission> {

    /**
     * 依据id逻辑删除签到以及提交感想情况
     * @param id 主键id
     * @return
     */
    Boolean deleteSingleInstanceById(@PathParam("id") Long id);

    /**
     * 获取活动的签到人数
     * @param activityId 活动id
     * @return
     */
    Long getSignByActivityId(@Param("activityId") String activityId);
}
